﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Idte.Application.Core.Navigation
{
    public enum MenuType
    {
        SideMenu = 0,
        ContextMenu = 1,
        DropDown = 2,
        TreeMenu = 3
    }
    public class Menu 
    {
        public Menu()
        {
            Items = new HashSet<MenuItem>();
        }
        [Key]
        public string Name { get; set; }

        public string Controller { get; set; }
        public string Action { get; set; }
        public string Title { get; set; }

        public MenuType Type { get; set; }

        public virtual ICollection<MenuItem> Items { get; set; }
    }
}
